const { merge } = require('webpack-merge')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const common = require('./webpack.common')

module.exports = merge(common, {
    mode: 'production',
    output: {
        filename: 'bundle-[contenthash:8].js'
    },
    plugins: [
        new CopyWebpackPlugin({
            patterns: ['public']
        })
    ]
})